home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / PageMakerClassLibrary / Queries / PListQuery.cpp < prev    next >
C/C++ Source or Header  |  1996-08-15  |  1KB  |  47 lines

  1. /*
  2.  *--- PListQuery.cpp ------------------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Thu, Oct 12, 1995 @ 10:00 PM by Paul Ferguson.
  5.  *
  6.  * Description:  For notes about this class, refer to the
  7.  * PCL documentation file PListQuery.html
  8.  *-------------------------------------------------------------------------
  9.  */
  10.  
  11. #include "PListQuery.h"
  12.  
  13. /*
  14.  *--- PListQuery -----------------------------------------------
  15.  * This constructor initializes the numItems and pointer
  16.  * past the numItems field.
  17.  *-------------------------------------------------------------------------
  18.  */
  19.  
  20. PListQuery::PListQuery(ePMQuery query)
  21. : PHandleQuery(query)
  22. {
  23.     InitListMom();
  24. }
  25.  
  26. /*
  27.  *--- InitListMom ----------------------------------------------
  28.  * Default behavior.  If a query has any fixed fields before
  29.  * the list begins, it must override this function, or
  30.  * otherwise set the list mom correctly before use.
  31.  *
  32.  * If your subclass calls the default PListQuery constructor,
  33.  * you MUST call InitHandle() and InitListMom() in your
  34.  * constructor.
  35.  *-------------------------------------------------------------------------
  36.  */
  37.  
  38. void PListQuery::InitListMom()
  39. {
  40.     if (itsHandle && replyPtr)
  41.     {
  42.         listMom = replyPtr;
  43.     }
  44. }
  45.  
  46. // end of PListQuery.cpp
  47.